package cn.com.hfuu.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.hfuu.dao.warehouseteaMapper;
import cn.com.hfuu.module.warehousetea;
import cn.com.hfuu.module.warehouseteax;

@Service("teaservice")
public class TeaService {

	@Autowired
	warehouseteaMapper teamap;
	
	public List<warehousetea> selectPage(Integer start, Integer limit,
			warehousetea tea, int i) {
		// TODO Auto-generated method stub
		return teamap.selectpage(start,limit,tea.getWarehouseTeaid(),i);
	}

	public List<warehousetea> selectpagetotal(warehousetea tea, int i) {
		// TODO Auto-generated method stub
		return teamap.selectpagetotal(tea.getWarehouseTeaid(),i);
	}

	public void insert(warehousetea tea) {
		// TODO Auto-generated method stub
		teamap.insertSelective(tea);
	}

	public warehousetea selectbyid(String warehouseTeaid) {
		// TODO Auto-generated method stub
		return teamap.selectByPrimaryKey(warehouseTeaid);
	}

	public List<warehousetea> selectall() {
		// TODO Auto-generated method stub
		return teamap.selectall();
	}

	public int update(warehousetea teaold) {
		// TODO Auto-generated method stub
		return teamap.updateByPrimaryKeySelective(teaold);
	}

	public List<warehousetea> selectallzl() {
		// TODO Auto-generated method stub
		return teamap.selectallzl();
	}

	public void setidzlnull(String zlTeaid) {
		// TODO Auto-generated method stub
		teamap.setidzlnull(zlTeaid);
	}

	public int updatezlnull(String id) {
		// TODO Auto-generated method stub
		return teamap.updatezlnull(id);
	}

	public warehousetea selectbyoperateid(String operateId) {
		// TODO Auto-generated method stub
		return teamap.selectbyoperateid(operateId);
	}

	public void deletebyid(String warehouseTeaid) {
		// TODO Auto-generated method stub
		teamap.deleteByPrimaryKey(warehouseTeaid);
	}

}
